/* Ejemplo de arreglo de objetos */
class dog{
	private String name;
	dog(String name){
		this.name = name;
	}
	String getName(){
		return name;
	}
}

public class ArrayObjects{
	public static void main(String[] args){
		dog[] listDogs = new dog[3];
		
		listDogs[0] = new dog("Salchicha");
		listDogs[1] = new dog("Negro");
		listDogs[2] = new dog("Lassy");
		System.out.println(listDogs);
		
		System.out.println(listDogs[0].getName());
		System.out.println(listDogs[1].getName());
		System.out.println(listDogs[2].getName());
	}
}